package com.sc.adminspringboot.controller;

import com.sc.adminspringboot.service.IDashBoardService;
import com.sc.adminspringboot.utils.ResponseMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DashBoardController {
    @Autowired
    private IDashBoardService dashBoardService;
    @RequestMapping("/admin/dashboard/metrics")
    public ResponseMsg getDashboardData(){
        return ResponseMsg.getInstance(ResponseMsg.SUCCESS,"获取成功", dashBoardService.getDashboardData());
    }
}
